package com.druid.app.service.impl;
import com.druid.app.dao.StudentDao;
import com.druid.app.model.Student;
import com.druid.app.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;

    /**
     * 根据学号查询学生信息
     * @param stuId
     * @return
     */
    public Student findStudentByStuId(String stuId) {
        //其他业务逻辑
        return studentDao.findStudentByStuId(stuId);
    }

    /**
     * 保存学生信息
     * @param o
     * @return
     */
    public Student save(Student o){
        return studentDao.save(o);
    }
}
